Part 1 of replication materials for Michael Tomz and Jessica Weeks, “Race, 
Democracy, and Public Support for War," American Political Science Review
Version: May 9, 2025

Part 1 contains all items necessary to replicate our analysis of data from 
Dafoe, Zhang, and Caughey (2018) and reproduce the estimates in Tables 1 and 2.

In addition to this readme-Part1.txt file, Part 1 contains the following items, 
which are stored thematically in the code, data, and documentation folders.

The original DZC questionnaire (democratic_peace.pdf), as well as additional 
documentation shared by Zhang showing the survey flow element ID numbers 
(democratic_peace_FlowIDs.pdf). These are stored in the documentation folder.

The original DZC dataset (democratic_peace.tab), plus a supplement to the 
original DZC dataset that includes the variable owrite, shared with us by Baobao 
Zhang (democratic_peace_data_tomz_request.RData, converted to excel and 
saved as democratic_peace_tomz_request.xlsx). These files are in the data folder.

A file containing our original coding of owrite (owrite_coding.xlsx), plus a 
codebook (TW_Codebook_owrite.pdf). These two files are in the data and 
documentation folders, respectively.

A Stata do-file that prepares and analyzes these datasets 
(TomzWeeks-Race-APSR-Part1.do). This file is located in the code folder. Using 
Stata Version 19.5 or higher, set your working directory to the "code" folder
and run the do file. We confirmed that the code runs on both 
Mac OS Sonoma 14.3.1 and Windows 11 Pro.

Output from our analysis (DZClog.txt), which is saved in the output folder. The
output file contains the estimates for Tables 1 and 2, and additional calculations
mentioned in the text.
